var app = getApp()
var req = require('../../utils/reqUtils.js')
Page( {
  data: {
  },
  onLoad: function (options) { 
    console.log(options);
    req.get('/GetServiceByCoachId', {
      coachId:options.artype
    }, 1)
    .then(res => {
      this.setData({
        list:res.data
      })
    });
  },
  // 预定
  bookTap:function(e){
    wx.navigateTo({
      url:'../book/book?aid='+e.currentTarget.dataset.aid
    })
  }
})